package router

import (
	"com-sys/handler"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.POST("login", handler.Login)
	r.GET("list", handler.List)
	r.GET("comment_list", handler.CommentList)
	return r
}
